home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / border / EmptyBorder.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1020 b   |  47 lines

  1. package javax.swing.border;
  2.  
  3. import java.awt.Component;
  4. import java.awt.Graphics;
  5. import java.awt.Insets;
  6. import java.io.Serializable;
  7.  
  8. public class EmptyBorder extends AbstractBorder implements Serializable {
  9.    protected int left;
  10.    protected int right;
  11.    protected int top;
  12.    protected int bottom;
  13.  
  14.    public EmptyBorder(int var1, int var2, int var3, int var4) {
  15.       this.top = var1;
  16.       this.right = var4;
  17.       this.bottom = var3;
  18.       this.left = var2;
  19.    }
  20.  
  21.    public EmptyBorder(Insets var1) {
  22.       this.top = var1.top;
  23.       this.right = var1.right;
  24.       this.bottom = var1.bottom;
  25.       this.left = var1.left;
  26.    }
  27.  
  28.    public Insets getBorderInsets(Component var1) {
  29.       return new Insets(this.top, this.left, this.bottom, this.right);
  30.    }
  31.  
  32.    public Insets getBorderInsets(Component var1, Insets var2) {
  33.       var2.left = this.left;
  34.       var2.top = this.top;
  35.       var2.right = this.right;
  36.       var2.bottom = this.bottom;
  37.       return var2;
  38.    }
  39.  
  40.    public boolean isBorderOpaque() {
  41.       return false;
  42.    }
  43.  
  44.    public void paintBorder(Component var1, Graphics var2, int var3, int var4, int var5, int var6) {
  45.    }
  46. }
  47.